package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

/**
 * @author zfj
 * @date 2024/4/8 -11:16
 */
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
	Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

	//根据医院编号，科室编号和工作日期查询详细信息
	List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
